home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1993-03-04 | 2.0 KB | [TEXT/KAHL] |
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
Confidence | Program | Detection | Match Type | Support
|
---|
66%
| dexvert
| Compact Compressed (Unix) (archive/compact)
| ext
| Supported |
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| MacBinary II, inited, Thu Mar 4 02:13:16 1993, modified Thu Mar 4 02:13:16 1993, creator Think C, type ASCII, 1317 bytes "ChiSquare.c" , at 0x5a5 428 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
74%
| TrID
| Macintosh plain text (MacBinary)
| default
| |
25%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| siegfried
| fmt/1762 MacBinary (II)
| default
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [KAHL] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0b 43 68 69 53 71 75 | 61 72 65 2e 63 00 00 00 |..ChiSqu|are.c...|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4b 41 48 | 4c 01 00 00 00 00 00 00 |.TEXTKAH|L.......|
|00000050| 00 00 00 00 00 05 25 00 | 00 01 ac a7 bb 5c 8c a7 |......%.|.....\..|
|00000060| bb 5c 8c 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.\......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 19 a3 00 00 |........|........|
|00000080| 2f 2a 0d 43 68 69 53 71 | 75 61 72 65 2e 63 0d 43 |/*.ChiSq|uare.c.C|
|00000090| 6f 70 79 72 69 67 68 74 | 20 31 39 39 30 20 a9 20 |opyright| 1990 . |
|000000a0| 44 65 6e 69 73 20 47 2e | 20 50 65 6c 6c 69 0d 50 |Denis G.| Pelli.P|
|000000b0| 43 68 69 53 71 75 61 72 | 65 28 29 20 63 61 6c 63 |ChiSquar|e() calc|
|000000c0| 75 6c 61 74 65 73 20 74 | 68 65 20 73 69 67 6e 69 |ulates t|he signi|
|000000d0| 66 69 63 61 6e 63 65 20 | 6c 65 76 65 6c 20 61 74 |ficance |level at|
|000000e0| 20 77 68 69 63 68 20 61 | 20 66 69 74 20 6d 61 79 | which a| fit may|
|000000f0| 20 62 65 20 72 65 6a 65 | 63 74 65 64 2e 0d 0d 48 | be reje|cted...H|
|00000100| 49 53 54 4f 52 59 3a 0d | 31 2f 37 2f 38 34 09 64 |ISTORY:.|1/7/84.d|
|00000110| 67 70 09 77 72 6f 74 65 | 20 69 74 20 69 6e 20 46 |gp.wrote| it in F|
|00000120| 4f 52 54 52 41 4e 0d 38 | 2f 39 2f 38 39 09 64 67 |ORTRAN.8|/9/89.dg|
|00000130| 70 09 74 72 61 6e 73 6c | 61 74 65 64 20 69 74 20 |p.transl|ated it |
|00000140| 74 6f 20 43 0d 34 2f 35 | 2f 39 30 09 64 67 70 09 |to C.4/5|/90.dgp.|
|00000150| 74 65 73 74 65 64 20 69 | 74 20 61 67 61 69 6e 73 |tested i|t agains|
|00000160| 74 20 74 61 62 6c 65 73 | 20 69 6e 20 41 62 72 61 |t tables| in Abra|
|00000170| 6d 6f 77 69 74 7a 20 69 | 6e 20 53 74 65 67 75 6e |mowitz i|n Stegun|
|00000180| 2e 20 57 6f 72 6b 73 20 | 66 69 6e 65 2e 0d 34 2f |. Works |fine..4/|
|00000190| 38 2f 39 30 09 64 67 70 | 09 72 65 6e 61 6d 65 64 |8/90.dgp|.renamed|
|000001a0| 20 66 69 6c 65 20 43 68 | 69 53 71 75 61 72 65 2e | file Ch|iSquare.|
|000001b0| 63 20 66 72 6f 6d 20 50 | 43 68 69 53 71 75 61 72 |c from P|ChiSquar|
|000001c0| 65 2e 63 0d 37 2f 33 30 | 2f 39 31 09 64 67 70 09 |e.c.7/30|/91.dgp.|
|000001d0| 6e 6f 77 20 75 73 65 20 | 4e 41 4e 20 64 65 66 69 |now use |NAN defi|
|000001e0| 6e 65 64 20 69 6e 20 56 | 69 64 65 6f 54 6f 6f 6c |ned in V|ideoTool|
|000001f0| 62 6f 78 2e 68 0d 31 2f | 31 32 2f 39 32 09 64 67 |box.h.1/|12/92.dg|
|00000200| 70 09 52 65 6e 61 6d 65 | 64 20 4e 6f 72 6d 61 6c |p.Rename|d Normal|
|00000210| 50 44 46 28 29 20 74 6f | 20 4e 6f 72 6d 61 6c 50 |PDF() to| NormalP|
|00000220| 64 66 28 29 2e 0d 2a 2f | 0d 23 69 6e 63 6c 75 64 |df()..*/|.#includ|
|00000230| 65 20 22 56 69 64 65 6f | 54 6f 6f 6c 62 6f 78 2e |e "Video|Toolbox.|
|00000240| 68 22 0d 23 69 6e 63 6c | 75 64 65 20 3c 6d 61 74 |h".#incl|ude <mat|
|00000250| 68 2e 68 3e 0d 0d 64 6f | 75 62 6c 65 20 50 43 68 |h.h>..do|uble PCh|
|00000260| 69 53 71 75 61 72 65 20 | 28 64 6f 75 62 6c 65 20 |iSquare |(double |
|00000270| 63 68 69 53 71 75 61 72 | 65 2c 69 6e 74 20 6e 29 |chiSquar|e,int n)|
|00000280| 0d 2f 2a 0d 52 65 74 75 | 72 6e 73 20 6f 6e 65 20 |./*.Retu|rns one |
|00000290| 6d 69 6e 75 73 20 74 68 | 65 20 63 75 6d 75 6c 61 |minus th|e cumula|
|000002a0| 74 69 76 65 20 70 72 6f | 62 61 62 69 6c 69 74 79 |tive pro|bability|
|000002b0| 20 6f 66 20 74 68 65 0d | 43 68 69 2d 53 71 75 61 | of the.|Chi-Squa|
|000002c0| 72 65 20 64 69 73 74 72 | 69 62 75 74 69 6f 6e 20 |re distr|ibution |
|000002d0| 66 6f 72 20 76 61 6c 75 | 65 20 63 68 69 73 71 20 |for valu|e chisq |
|000002e0| 77 69 74 68 20 6e 20 64 | 65 67 72 65 65 73 20 6f |with n d|egrees o|
|000002f0| 66 20 66 72 65 65 64 6f | 6d 2e 0d 54 68 65 20 66 |f freedo|m..The f|
|00000300| 6f 72 6d 75 6c 61 20 69 | 73 20 66 72 6f 6d 20 41 |ormula i|s from A|
|00000310| 62 72 61 6d 6f 77 69 74 | 7a 20 61 6e 64 20 53 74 |bramowit|z and St|
|00000320| 65 67 75 6e 2c 20 45 71 | 73 2e 20 32 36 2e 34 2e |egun, Eq|s. 26.4.|
|00000330| 34 20 61 6e 64 20 32 36 | 2e 34 2e 35 2c 20 70 67 |4 and 26|.4.5, pg|
|00000340| 20 39 34 31 2e 0d 54 68 | 65 20 66 6f 72 6d 75 6c | 941..Th|e formul|
|00000350| 61 20 69 73 20 65 78 61 | 63 74 2e 0d 52 61 6e 67 |a is exa|ct..Rang|
|00000360| 65 3a 20 63 68 69 73 71 | 3e 3d 30 2e 30 2c 20 6e |e: chisq|>=0.0, n|
|00000370| 3e 3d 30 2c 0d 52 65 74 | 75 72 6e 73 20 7a 65 72 |>=0,.Ret|urns zer|
|00000380| 6f 20 69 66 20 6e 20 69 | 73 20 7a 65 72 6f 2e 0d |o if n i|s zero..|
|00000390| 0d 4d 2e 20 41 62 72 61 | 6d 6f 77 69 74 7a 20 61 |.M. Abra|mowitz a|
|000003a0| 6e 64 20 49 2e 41 2e 20 | 53 74 65 67 75 6e 20 28 |nd I.A. |Stegun (|
|000003b0| 31 39 36 34 29 20 48 61 | 6e 64 62 6f 6f 6b 20 6f |1964) Ha|ndbook o|
|000003c0| 66 20 6d 61 74 68 65 6d | 61 74 69 63 61 6c 20 66 |f mathem|atical f|
|000003d0| 75 6e 63 74 69 6f 6e 73 | 2e 20 44 6f 76 65 72 2e |unctions|. Dover.|
|000003e0| 0d 2a 2f 0d 7b 0d 09 64 | 6f 75 62 6c 65 20 78 2c |.*/.{..d|ouble x,|
|000003f0| 61 2c 50 3b 0d 09 69 6e | 74 20 69 2c 69 69 3b 0d |a,P;..in|t i,ii;.|
|00000400| 09 0d 09 69 66 28 63 68 | 69 53 71 75 61 72 65 3c |...if(ch|iSquare<|
|00000410| 30 2e 30 20 7c 7c 20 6e | 3c 30 29 20 72 65 74 75 |0.0 || n|<0) retu|
|00000420| 72 6e 20 4e 41 4e 3b 09 | 2f 2a 20 72 65 74 75 72 |rn NAN;.|/* retur|
|00000430| 6e 20 4e 41 4e 20 74 6f | 20 73 69 67 6e 61 6c 20 |n NAN to| signal |
|00000440| 65 72 72 6f 72 20 2a 2f | 0d 09 78 20 3d 20 73 71 |error */|..x = sq|
|00000450| 72 74 28 63 68 69 53 71 | 75 61 72 65 29 3b 0d 09 |rt(chiSq|uare);..|
|00000460| 69 66 28 6e 25 32 20 21 | 3d 20 30 29 20 7b 0d 09 |if(n%2 !|= 0) {..|
|00000470| 09 2f 2a 20 6e 20 69 73 | 20 6f 64 64 20 2a 2f 0d |./* n is| odd */.|
|00000480| 09 09 50 20 3d 20 32 2e | 30 2a 4e 6f 72 6d 61 6c |..P = 2.|0*Normal|
|00000490| 28 2d 78 29 3b 0d 09 09 | 61 20 3d 20 32 2e 30 2a |(-x);...|a = 2.0*|
|000004a0| 4e 6f 72 6d 61 6c 50 64 | 66 28 78 29 2a 78 3b 0d |NormalPd|f(x)*x;.|
|000004b0| 09 09 69 69 20 3d 20 28 | 6e 2d 31 29 2f 32 3b 0d |..ii = (|n-1)/2;.|
|000004c0| 09 09 66 6f 72 28 69 3d | 31 3b 69 3c 3d 69 69 3b |..for(i=|1;i<=ii;|
|000004d0| 69 2b 2b 29 7b 0d 09 09 | 09 50 20 2b 3d 20 61 3b |i++){...|.P += a;|
|000004e0| 0d 09 09 09 61 20 2a 3d | 20 63 68 69 53 71 75 61 |....a *=| chiSqua|
|000004f0| 72 65 2f 28 32 2a 69 2b | 31 29 3b 0d 09 09 7d 0d |re/(2*i+|1);...}.|
|00000500| 09 7d 0d 09 65 6c 73 65 | 20 7b 0d 09 09 2f 2a 20 |.}..else| {.../* |
|00000510| 6e 20 69 73 20 65 76 65 | 6e 20 2a 2f 0d 09 09 50 |n is eve|n */...P|
|00000520| 20 3d 20 30 2e 30 3b 0d | 09 09 61 20 3d 20 73 71 | = 0.0;.|..a = sq|
|00000530| 72 74 28 32 2e 30 2a 50 | 49 29 2a 4e 6f 72 6d 61 |rt(2.0*P|I)*Norma|
|00000540| 6c 50 64 66 28 78 29 3b | 0d 09 09 69 69 20 3d 20 |lPdf(x);|...ii = |
|00000550| 6e 2f 32 3b 0d 09 09 66 | 6f 72 28 20 69 3d 31 3b |n/2;...f|or( i=1;|
|00000560| 69 3c 3d 69 69 3b 69 2b | 2b 29 7b 0d 09 09 09 50 |i<=ii;i+|+){....P|
|00000570| 20 2b 3d 20 61 3b 0d 09 | 09 09 61 20 2a 3d 20 63 | += a;..|..a *= c|
|00000580| 68 69 53 71 75 61 72 65 | 2f 28 32 2a 69 29 3b 0d |hiSquare|/(2*i);.|
|00000590| 09 09 7d 0d 09 7d 0d 09 | 72 65 74 75 72 6e 20 50 |..}..}..|return P|
|000005a0| 3b 0d 7d 0d 0d 00 00 00 | 00 00 00 00 00 00 00 00 |;.}.....|........|
|000005b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000600| 00 00 01 00 00 00 01 6e | 00 00 00 6e 00 00 00 3e |.......n|...n...>|
|00000610| 6f 70 79 72 69 67 68 74 | 20 31 39 39 30 20 a9 20 |opyright| 1990 . |
|00000620| 44 65 6e 69 73 20 47 2e | 20 50 65 6c 6c 69 0d 50 |Denis G.| Pelli.P|
|00000630| 0b 43 68 69 53 71 75 61 | 72 65 2e 63 02 00 00 00 |.ChiSqua|re.c....|
|00000640| 54 45 58 54 4b 41 48 4c | 00 00 00 00 00 00 00 00 |TEXTKAHL|........|
|00000650| 00 00 54 45 58 54 4b 41 | 48 4c 00 00 00 00 00 00 |..TEXTKA|HL......|
|00000660| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000670| 00 00 a7 e5 d5 ae 00 00 | 00 00 00 00 01 ac 0d 48 |........|.......H|
|00000680| 49 53 54 4f 52 59 3a 0d | 31 2f 37 2f 38 34 09 64 |ISTORY:.|1/7/84.d|
|00000690| 67 70 09 77 72 6f 74 65 | 20 69 74 20 69 6e 20 46 |gp.wrote| it in F|
|000006a0| 4f 52 54 52 41 4e 0d 38 | 2f 39 2f 38 39 09 64 67 |ORTRAN.8|/9/89.dg|
|000006b0| 70 09 74 72 61 6e 73 6c | 61 74 65 64 20 69 74 20 |p.transl|ated it |
|000006c0| 74 6f 20 43 0d 34 2f 35 | 2f 39 30 09 64 67 70 09 |to C.4/5|/90.dgp.|
|000006d0| 74 65 73 74 65 64 20 69 | 74 20 61 67 61 69 6e 73 |tested i|t agains|
|000006e0| 74 20 74 61 62 6c 65 73 | 20 69 6e 20 41 62 72 61 |t tables| in Abra|
|000006f0| 6d 6f 77 69 74 7a 20 69 | 6e 20 53 74 65 67 75 6e |mowitz i|n Stegun|
|00000700| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 20 7b 0d |...H..Mo|naco. {.|
|00000710| 00 00 00 14 00 01 a7 a4 | 00 0a 80 01 80 01 7f ff |........|........|
|00000720| 7f ff 01 41 00 00 00 06 | 00 04 00 50 00 20 01 dd |...A....|...P. ..|
|00000730| 02 3d 00 50 00 20 01 dd | 02 3d a5 96 4b 13 00 00 |.=.P. ..|.=..K...|
|00000740| 01 76 00 00 01 a6 00 00 | 00 7f 01 00 00 00 00 1e |.v......|........|
|00000750| 00 50 00 20 01 dd 02 3d | 00 50 00 20 01 dd 02 3d |.P. ...=|.P. ...=|
|00000760| 00 00 00 7f 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000770| 01 00 00 00 01 6e 00 00 | 00 6e 00 00 00 3e 00 49 |.....n..|.n...>.I|
|00000780| f2 90 08 74 00 00 00 1c | 00 3e 00 00 4d 50 53 52 |...t....|.>..MPSR|
|00000790| 00 01 00 0a 03 ed ff ff | 00 00 00 00 00 00 00 00 |........|........|
|000007a0| 03 f0 ff ff 00 00 00 4c | 00 4b f2 10 00 00 00 00 |.......L|.K......|
|000007b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+